<template>
    <div id="app">
        <template v-if="route.path.startsWith('/user')">
            <UserLayout></UserLayout>
        </template>
        <template v-else>
            <BasicLayout></BasicLayout>
        </template>

    </div>
</template>

<script setup>
    import BasicLayout from './layout/BasicLayout'
    import UserLayout from './layout/UserLayout'
    import {useRoute} from "vue-router";
    import {getLoginUserUsingGet} from "@/api/userController";
    import {useLoginUserStore} from "@/store/userStore";

    const route = useRoute();

    const loginUserStore = useLoginUserStore();
    loginUserStore.fetchLoginUser();
</script>

<style>

</style>
